package com.leo;

import javafx.beans.property.SimpleStringProperty;

/**
 * @ClassName Person
 * @Description
 * @Author wangss
 * @date 2020.06.09 13:45
 * @Version 1.0
 */
public class PersonProperty2 {

    private String name;

    private SimpleStringProperty age = new SimpleStringProperty();

    public PersonProperty2(String name, String age) {
        this.name = name;
        this.age.set(age);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age.get();
    }

    public SimpleStringProperty ageProperty() {
        return age;
    }

    public void setAge(String age) {
        this.age.set(age);
    }
}
